/* stylelint-disable no-duplicate-selectors */
@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.spread,
.spacebt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
}
.column{
  display: flex;
  flex-direction: column;
  justify-content: center;

}

.ant-card-extra {
  display: flex;
}
.ant-tabs-large > .ant-tabs-nav .ant-tabs-tab {
  font-size: 14px !important;
}
.ant-table-cell {
  max-width: 240px !important;
}
.x-spreadsheet-sheet {
  width: 100% !important;
}
.pagetitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 12px 12px 0px 12px;
  overflow: hidden;
  color: #333;
  font-size: 18px;
  background-color: #fff;
  border-bottom: @primary-color solid 2px;
  border-radius: 4px;
  .ant-tabs > .ant-tabs-nav {
    margin-bottom: -1px;
  }
}
.fixedsearch {
  position: fixed;
  right: 0px;
  bottom: 188px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  width: 43px;
  overflow: hidden;
  .action {
    margin: 0 !important;
    margin-bottom: 12px !important;
    border-radius: 4px 0 0 4px;
  }
}
.action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 2px;
  background-color: @primary-color;
  border-radius: 4px;
  cursor: pointer;
  span {
    font-size: 20px;
  }
}
.pgcontainer {
  height: 100%;
  overflow: auto;
}

.ant-layout-content {
  height: 100%;
}

.ant-layout {
  min-height: 100vh;
}

.ant-pro-basicLayout-content {
  margin: 12px !important;
  height: calc(100vh - 108px);
}
.ant-pro-menu-item-title,.anticon-message {
  color: #fff !important;
}
.ant-pro-global-footer-copyright {
  color: rgba(255, 255, 255, 0.6);
}

.ant-pro-table-list-toolbar-right {
  flex: 1 !important;
  justify-content: space-between !important;
}

.ant-pro-table-list-toolbar-filter {
  margin-left: 0px !important;
}
.ant-card {
  height: 100% !important;
}
.ant-card-body {
  height: 100% !important;
  margin-top: 1px !important;
  padding: 2px 6px !important;
  overflow: hidden;
  background-color: #fff;
}
.tocopy {
  .ant-typography-expand,
  .ant-typography-edit,
  .ant-typography-copy {
    margin: 0 !important;
    margin-top: -4px !important;
    color: #ffffff !important;
  }
}

@media screen and (max-width: 768px) {
  .ant-card-body {
    margin: 0px !important;
    padding: 0 !important;
    background-color: #eef0f3 !important;
  }
  .ant-card-bordered {
    border: none !important;
  }
}

.am-list-body {
  background-color: transparent !important;
  border: none !important;
  &::before {
    background-color: transparent !important;
  }

  &::after {
    background-color: transparent !important;
  }
}

.ant-pro-card-body {
  padding: 12px !important;
}

.ant-pro-card-header {
  padding: 12px !important;
}

.am-list-header {
  padding: 0px !important;
}

.ant-card-head {
  padding: 0px 12px !important;
}

.ant-card-extra {
  padding: 8px 0px !important;
}

.am-list-view-scrollview-content {
  width: 100% !important;
  min-width: 200px !important;
  height: 100% !important;
}

.ant-card-head-title {
  padding: 11px 0px !important;
}
.title {
  position: relative;
  display: block;
  margin-bottom: 12px;
  padding-left: 20px;
  color: #333;
  font-size: 16px;
  &::before {
    position: absolute;
    top: 4px;
    left: 6px;
    width: 4px;
    height: 19px;
    background-color: @primary-color;
    content: '';
  }
}
.tabEchart .ant-card-head-title {
  padding: 1px 0px !important;
}

.ant-select-dropdown {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
}

.ant-modal-confirm-content {
  margin-top: 12px !important;
  margin-left: 0px !important;
}

canvas {
  display: block;
}

.notrans {
  .am-pull-to-refresh-content {
    transform: none !important;
    transition: all 0s;
  }

  .ifixed {
    top: 0px !important;
    transition: all 0s;
  }
}
.animated {
  cursor: pointer;
  user-select: none;
  * {
    transition: all 0.4s;
  }
}
.trans {
  .ifixed {
    top: 24px !important;
    transition: all 0s;
  }
}
.centerl {
  display: flex !important;
}

.center {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.ant-pro-card-body {
  padding: 12px !important;
}

.ant-pro-card-header {
  padding: 12px !important;
}

.ant-tag {
  margin-right: 0px;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

.ant-layout-footer {
  background-color: transparent;
}

.ant-card-head .ant-tabs {
  margin-bottom: -13px !important;
}

.oneline {
  display: block;
  max-width: 166px !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bg {
  background-image: linear-gradient(
    145deg,
    #91daff 0%,
    #7bd1ff 25%,
    #ffa7ea 50%,
    #7bd1ff 75%,
    #91daff 100%
  );
  background-size: 400% 400%;
  animation: bgmove 20s linear 0s infinite alternate forwards;
}

.bglight {
  background-image: linear-gradient(
    145deg,
    #bee9ff 0%,
    #99dbff 25%,
    #ffc4f1 50%,
    #99dbff 75%,
    #bee9ff 100%
  );
  background-size: 400% 400%;
  animation: bgmove 20s linear 0s infinite alternate forwards;
}

.bgtext {
  background-image: linear-gradient(
    145deg,
    #91daff 0%,
    #7bd1ff 25%,
    #ffa7ea 50%,
    #7bd1ff 75%,
    #91daff 100%
  );
  background-clip: text;
  animation: bgmove 20s linear 0s infinite alternate forwards;
  -webkit-text-fill-color: transparent;
}

.hoverable {
  .iconcon {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
  }
}
.ant-typography {
  color: inherit !important;
}

.diycard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 160px !important;
  margin-bottom: 18px;
  overflow: hidden;
  color: #fff;
  background-color: #23bdff;
  border-radius: 4px;
  box-shadow: 0 0 4px transparent;
  cursor: pointer;
  transition: all 0.4s;
  &:hover {
    background-color: @primary-color !important;
    box-shadow: 0 0 4px #666;
    transition: all 0.4s;
  }
}

@keyframes bgmove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;

        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

button {
  position: relative;
  overflow: hidden !important;
  &::after {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #fff 10%, transparent 11%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(12, 12);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
    content: '';
    pointer-events: none;
  }
  &:active::after {
    transform: scale(0, 0);
    opacity: 0.3; //设置初始状态
    transition: 0s;
  }
}
.red {
  background-color: #ffb8b8 !important;
}
.green {
}

.resets {
  .ant-upload {
    padding: 4px !important;
  }
}

.diycards {
  overflow: auto !important;
  .ant-card-body {
    > div {
      overflow: auto !important;
    }
  }
}

.actionbar {
  .ant-upload-picture-card-wrapper{
    width: auto !important;
  }
  .ant-upload.ant-upload-select-picture-card {
    background-color: #ffffff;
    border: none !important;
    border-radius: 8px;
    padding: 12px;
    margin: 0 !important;
    width: 60px !important;
    height: 60px !important;
  }
}

.ant-popover-arrow {
  display: none !important;
}

.cancle{
  .center;
  /* stylelint-disable-next-line declaration-empty-line-before */
  transition: all 0.4s;
  cursor: pointer;
  margin-top: 10px;

  &:hover {
    background-color: #23bdff !important;
    color: #ffffff;
  };
}
